﻿namespace PerceptiveMCAPI.Types
{
   public class Api_ValidatorMessage
   {
      public string PropertyName { get; set; }
      public string MessageText { get; set; }
      public EnumValues.MessageLevel MessageLevel { get; set; }
      public string MessageLevelDesc
      {
         get { return MessageLevel.ToString(); }
      }

      public Api_ValidatorMessage()
      {
         MessageLevel = EnumValues.MessageLevel.NoMessage;
      }
      public override string ToString()
      {
         return string.Format( "apikey Name: {0}, Message: {1}",
            PropertyName, MessageText );
      }
   }
}
